package com.ruiysoft.service.order.bean;

import com.ruiysoft.pub.core.ResultCode;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * Date : 2018/11/24
 *
 * @author WenJialu
 */
public class OrderPaymentCallbackDto implements Serializable {

	private static final long serialVersionUID = -4520858971318633080L;

	private String resultCode;

	private String orderNo;

	/**
	 * 微信流水号
	 */
	private String transactionId;

	/**
	 * 系统流水号
	 */
	private String sysTransactionNo;

	private BigDecimal payAmount;

	private String errorMessage;

	public boolean isSuccess(){
		return ResultCode.CODE_SUCCESS.equals(this.resultCode) || "SUCCESS".equals(this.resultCode);
	}

	public String getResultCode() {
		return resultCode;
	}

	public OrderPaymentCallbackDto setResultCode(String resultCode) {
		this.resultCode = resultCode;
		return this;
	}

	public String getOrderNo() {
		return orderNo;
	}

	public OrderPaymentCallbackDto setOrderNo(String orderNo) {
		this.orderNo = orderNo;
		return this;
	}

	public String getTransactionId() {
		return transactionId;
	}

	public OrderPaymentCallbackDto setTransactionId(String transactionId) {
		this.transactionId = transactionId;
		return this;
	}

	public String getSysTransactionNo() {
		return sysTransactionNo;
	}

	public OrderPaymentCallbackDto setSysTransactionNo(String sysTransactionNo) {
		this.sysTransactionNo = sysTransactionNo;
		return this;
	}

	public BigDecimal getPayAmount() {
		return payAmount;
	}

	public OrderPaymentCallbackDto setPayAmount(BigDecimal payAmount) {
		this.payAmount = payAmount;
		return this;
	}

	public String getErrorMessage() {
		return errorMessage;
	}

	public OrderPaymentCallbackDto setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
		return this;
	}
}
